include $(RTMEUSDIR)/src/Makefile.generic

LDFLAGS += -falign-functions=4  -L$(LIBDIR) -lCommandService -lStateService 
TARGETOBJS += $(OBJDIR)/$(TARGET).o $(OBJDIR)/rtmeus.o 
TARGET=librtmeus
TARGETLIB = $(LIBDIR)/$(TARGET).$(LSFX)

all:$(TARGETLIB)

$(TARGETLIB): $(TARGETOBJS)
	$(CXX) -shared -o $@ $^ $(LDFLAGS)

$(OBJDIR)/$(TARGET).o:$(TARGET).cpp
	$(CXX) $(CXXFLAGS) -c -o $@ $<

$(OBJDIR)/rtmeus.o:rtmeus.cpp
	$(CXX) $(CXXFLAGS) -c -o $@ $<

clean:
	rm -f $(TARGETLIB) $(TARGETOBJS) *~